<?$fecha = date("d")."-".date("m")."-".date("Y");

$idnota = $_GET['id'];
$tipo = $_GET['tipo'];

include ("../conectarse.php");



$consultatickets = "select * from prestamos, solicitantes where prestamos.pres_id like '$idnota' and prestamos.pres_id_solicitante = solicitantes.sol_id";
$resultadotickets = mysql_query($consultatickets);
$cantidadtickets = mysql_num_rows($resultadotickets);
$filatickets = mysql_fetch_array($resultadotickets);?>
<body bgcolor = "#005F8C" alink = "white" vlink = "white" link = "white" text = "white">
<table width  ="100%" height = "100%" cellpadding = "0" cellspacing = "0">

<tr valign = "top">

<td align = "center">

<!--BARRA                    -->

<?include ("./barra/barramutual.php");?>

<!-- FIN DE LA BARRA                    -->
</td>


</tr>


<tr valign = "top" height = "100%"><td align = "left">

<!-- CUERPO DEL SISTEMA -->
<table cellpadding = "0" cellspacing = "0" border  ="0" height = "100%">
<tr valign = "middle"><td bgcolor = "black">


<?include ("links.php");?>



<!-- FIN DEL CUERPO DEL SISTEMA -->







</td><td width = "100%" align = "center">
<form action = "acepta2.php" method = "POST" enctype="multipart/form-data">
<input type = "hidden" name ="carpetaid" value = "<?echo $idnota;?>">
<table height = "100%"><TR valign="top"><TD>
<fieldset style="width:350px;"><legend>CARPETA</legend>
                                      
<TABLE align="center"><TR><TD>Usuario:</TD><TD>MUTUARLA</TD></TR>
<TR><TD>Fecha:</TD><TD><?echo substr($filatickets['pres_fecha_alta'],6,2)."-".substr($filatickets['pres_fecha_alta'],4,2)."-".substr($filatickets['pres_fecha_alta'],0,4);?></TD></TR>
<TR><TD>Cuil:</TD><TD><?echo $filatickets['sol_cuil'];?></TD></TR>
<TR><TD colspan = "2" align = "center"><hr>NOSIS<br><br><hr>

            <p><input type="file" size="32" name="archivo" value="" /></p>
<input type ="hidden" name = "pres_id" value = "<?echo $idnota;?>">
<input name="action" type="hidden" value="upload" />   
            <p class="button"><input type="hidden" name="action" value="image" /><center><hr>
<input type = "submit" value = "Aprobar"></form></TD></TR></TABLE>



</fieldset>

</td></tr></table>

</TD></TR></table>



























</td>
</td></tr>

</table>
